﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Environment_Updater {
    class Airport {
        private List<Plane> planes;

        public Airport() {
            planes = new List<Plane>();

            Plane plane;
            plane = new Plane("Plane1", 110, 50, 0);
            plane.Velocity = new WorldVector(50, 50, 0);
            plane.SetTakingOff();
            planes.Add(plane);

           /* plane = new Plane(55, 70);
            plane.Speed = 240;
            plane.Heading = 110;
            planes.Add(plane);

            plane = new Plane(10, 135);
            plane.Speed = 200;
            plane.Heading = 245;
            planes.Add(plane);*/
        }

        public void UpdatePlanes() {
            foreach(Plane plane in planes) {
                plane.Update();
            }
        }
    }
}
